package com.diandian.backend.store.param;

import com.diandian.backend.store.dto.StoreDouyinLifeStoreInfoDeleteByIdParamDTO;
import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;

public class StoreDouyinLifeStoreInfoDeleteByIdParam implements Serializable {

	private Long id;
	private String belong;

	public void check(){
		if(this.id == null){
			throw new DefaultException("id不能为空");
		}
		if(this.belong == null || "".equals(this.belong)){
			throw new DefaultException("归属标识不合法");
		}
	}

	public StoreDouyinLifeStoreInfoDeleteByIdParamDTO toDTO(){
		StoreDouyinLifeStoreInfoDeleteByIdParamDTO result = new StoreDouyinLifeStoreInfoDeleteByIdParamDTO();
		result.setId(this.id);
		result.setBelong(this.belong);
		return result;
	}

	public Long getId() {
		return id;
	}
	public Long setId(Long id) {
		return this.id = id;
	}

	public String getBelong() {
		return belong;
	}

	public void setBelong(String belong) {
		this.belong = belong;
	}
}
